package com.acme.exceptions;

import com.acme.bankapp.domain.bank.Client;
import com.acme.bankapp.domain.bank.Account;

public class OverDraftLimitExceededException extends NotEnoughFundsException {
    Account account;
    int amountAllowed;
    
    public OverDraftLimitExceededException(int amountWanted, Account account, int amountAllowed) {
        super(amountWanted);
        this.account = account;  
        this.amountAllowed = amountAllowed;
    }
    
    public Account getAccount() {
        return account;
    }
       
    public int getAmountAllowed() {
        return amountAllowed;
    }
}
